package com.kins.so.openapi.action;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:
 * @Author: 申科
 * @Date:2025/11/8 11:23
 */


@RestController
@Slf4j
@RequestMapping("/openApi")
public class OpenApiController {

    @Autowired
    private SOTestService soTestService;

    @PostMapping("/exeFlow")
    public ResponseVO exeFlow(@RequestBody ExeFlowParams exeFlowParams){
        return soTestService.exeFlow(exeFlowParams);
    }

    @GetMapping("/getFlowResult")
    public ResponseVO getFlowResult(@RequestParam String runFlowId){
        return soTestService.getFlowResult(runFlowId);
    }
}
